#include <SPI.h>//包含spi库，spi是一种协议
#include <nRF24L01.h>//包含nrf24l01
#include <RF24.h>    //rf总库

RF24 radio(7,8);

const byte address[6] = "00001";
void setup() {
radio.begin();
radio.openWritingPipe(address);
radio.setPALevel(RF24_PA_MIN);
radio.stopListening();
}

void loop() {
const char text[] ="Abhv";
radio.write(&text, sizeof(text));
delay(1000);
const char text1[] ="Cjh.";
radio.write(&text1, sizeof(text1));
delay(1000);
}